<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			a{
				width: 120px;
				height: 58px;
				/* 变成一个行内块元素 */
				display: inline-block;
				background: red;
				/* 字体颜色 */
				color: #fff;
				/* 去掉下划线 */
				text-decoration: none;
				/* 字体居中 */
				text-align: center;
				
				line-height: 45px;
			
			}
			.baidu{
				background-image: url(images/bg1.png);
			}
			.xinlang{
				background-image: url(images/bg2.png);
			}
			.mayun{
				background-image: url(images/bg3.png);
			}
			.dongyin{
				background-image: url(images/bg4.png);
			}
			.baidu:hover{
				background-image: url(images/bg5.png);
			}
			.xinlang:hover{
				background-image: url(images/bg6.png);
			}
			.mayun:hover{
				background-image: url(images/bg7.png);
			}
			.dongyin:hover{
				background-image: url(images/bg8.png);
			}
		</style>
	</head>
	<body>
		<a href=""class="baidu">百度</a>
		<a href=""class="xinlang">新浪</a>
		<a href=""class="mayun">码云</a>
		<a href=""class="dongyin">冬阴</a>
	</body>
</html>
